#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QPushButton>
#include <QVBoxLayout>
#include <QHBoxLayout>
#include <QString>
#include <QSignalMapper>
#include <QMessageBox>

class MainWidget : public QWidget
{
    Q_OBJECT

public:
    MainWidget(QWidget *parent = 0);
    ~MainWidget();
    void setColor();
    void setButtons();
    void updateColor();
private slots:
    void check(int button_id);
private:
    QPushButton * buttons[9];
    QHBoxLayout * hlayouts[3];
    QVBoxLayout * verticalLayout;
    QSignalMapper * mapper;
    QMessageBox * msg;
};

#endif // MAINWIDGET_H
